package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.BuildDAO;
import com.wanda.model.BuildModel;
import com.wanda.model.BuildProModel;
import com.wanda.service.BuildService;

@Service
public class BuildServiceImpl implements BuildService{

	@Autowired
	private BuildDAO buildDAO;

	public void insertBuild(BuildModel model) {
		// TODO Auto-generated method stub
		buildDAO.insertBuild(model);
	}

	public int updateBuild(BuildModel model) {
		// TODO Auto-generated method stub
		return buildDAO.updateBuild(model);
	}

	public int deleteBuild(BuildModel model) {
		// TODO Auto-generated method stub
		return buildDAO.deleteBuild(model);
	}

	public BuildModel selectById(String id) {
		// TODO Auto-generated method stub
		return buildDAO.selectById(id);
	}

	public List<BuildProModel> selectAll() {
		// TODO Auto-generated method stub
		return buildDAO.selectAll();
	}

	public List<BuildProModel> selectAlll(String tel) {
		// TODO Auto-generated method stub
		return buildDAO.selectAlll(tel);
	}

	public List<BuildModel> selectBySql(String SeacherSql) {
		// TODO Auto-generated method stub
		return buildDAO.selectBySql(SeacherSql);
	}

	public List<BuildProModel> selectBySqls(int page, int rows, String SeacherSql) {
		// TODO Auto-generated method stub
		return buildDAO.selectBySqls(page, rows, SeacherSql);
	}


	
}
